package com.xframe.domain.role;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XSelectItem;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;

/**
 * 系统对象的部门表
 *
 * @author xufeng
 * @version 1.0
 * @date 2023-03-28
 */
@Data
@XTable(value = "SYS_DEPT", label = "部门")
@XSelectItem(keyName = "deptId",codeName = "deptCode",textName = "cnName")
@XSelectItem(keyName = "deptId",codeName = "deptCode",textName = "enName",language = "en")
public class SysDept extends BaseModel {
    /**
     * 部门ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "DEPT_ID", primaryKeyFlag = true,desc = "部门ID")
    private Long deptId;

    /**
     * 部门编码
     */
    @XColumn(uniqueFlag = true,desc = "部门编码")
    private String deptCode;

    /**
     * 部门名称(中文)
     */
    @XColumn(desc = "部门中文名称")
    private String cnName;

    /**
     * 部门名称(英文)
     */
    @XColumn(desc = "部门英文名称")
    private String enName;

    /**
     * 排序码
     */
    @XColumn(desc = "排序码")
    private Long sortOrder;

    /**
     * 父节点ID
     */
    @XColumn(desc = "父节点ID")
    private Long parentId;


}
